package IO;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo2 {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos =  new FileOutputStream("./File/osw.txt",true); //文件输出流
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);  //   字符转字节
        BufferedWriter bw = new BufferedWriter(osw);  //                                    缓冲流（8k小车）
        PrintWriter pw = new PrintWriter(bw);      //                                      写入
        pw.println("原谅我这一生不放纵在自由");
        pw.println("也会怕有一天会跌倒");
        pw.close();
    }
}
